Ext.apply(Ext.form.VTypes,{  
    password:function(val,field){  
        if(field.initialPassField){ 
            var pwd = field.up().up().down('#'+field.initialPassField);  
            return (val == pwd.getValue());  
        }  
        return true;  
    },  
    passwordText:'两次密码不一致'  
}); 